/*
 * @Date: 2023-02-25 17:23:00
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-02-27 16:22:44
 * @FilePath: \A19\backend\src\shared\protocols\Get\PtlGetTestInfo.ts
 */
import { ObjectId } from "mongodb";
import { BaseRequest, BaseResponse, BaseConf } from "../base";
import { tests } from "../../types/tests";

export interface ReqGetTestInfo extends BaseRequest {
    testId:ObjectId,
    examOrHomework:'exam' | 'homework'
}

export interface ResGetTestInfo extends BaseResponse {
    testInfo:tests
}

export const conf: BaseConf = {
    needLogin: true
}